#include "../process.h"
#include "../disk.h"

#include <math.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
	struct process *t;

	t = proc_create("FOO", 0, 23, DISK_BLOCK_SIZE*4);

	do
	{
		proc_print(t);
		if(proc_runtime_to_syscall(t)<=0)
			{proc_did_io(t, 1);}
		else
			{proc_ran(t, 1);}
	} while(!proc_done(t));
	proc_print(t);
	proc_exit(t);

	return 0;
}
